package com.rongke.service;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.rongke.commons.JsonResp;
import com.rongke.model.Admin;
import com.rongke.model.User;

import java.util.List;
import java.util.Map;

/**
 * @AdminService
 * @管理员Service
 * @version : Ver 1.0
 */
public interface AdminService extends IService<Admin>{

      List<Admin> selectAdmin(Map map);
      Integer  selectAdminCount(Map map);
      JsonResp loginadmin(String userName, String password);
      /**
       * 获取当前登陆用户
       * @return JsonResp
       */
      Map findLoginUser();


      /***
       * logout 退出登录
       * */
      void logout();

}
